/* iframe视图专用样式 */
.iframe-view .tab-bar,
.iframe-view #tab-bar-container {
    display: none !important;
}

.iframe-view .quick-entry-button {
    display: none !important;
}

/* 调整iframe中页面的内边距，移除底部导航预留的空间 */
.iframe-view .px-4.pt-4.pb-24 {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    height: auto !important;
}

/* 为iframe内容添加缩放 */
.iframe-view body {
    transform: scale(1);
    transform-origin: top center;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow-x: hidden !important;
    background-color: white !important;
    line-height: 1.5 !important;
}

/* 隐藏状态栏 - 适配新结构 */
.iframe-view .status-bar {
    display: none !important;
}

/* 隐藏底部导航和指示器 - 适配新结构 */
.iframe-view .bottom-nav,
.iframe-view .home-indicator {
    display: none !important;
}

/* 调整内容区域高度，使内容能够完全展示 */
.iframe-view {
    overflow-y: auto !important;
    background-color: white !important;
    padding-top: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
}

/* 优化iPhone样机中的内容显示 */
.iframe-view .bg-gray-100 {
    background-color: white !important;
}

/* 调整全局视图按钮隐藏 */
.iframe-view .global-view-button {
    display: none !important;
}

/* 内容边距调整 */
.iframe-view .card,
.iframe-view .chart-container,
.iframe-view .bill-item {
    box-shadow: none !important; 
    margin-bottom: 10px !important;
    border: 1px solid #f0f0f0 !important;
}

/* 改善iPhone样机中的滚动体验 */
.iframe-view::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* 优化字体和颜色 */
.iframe-view h1,
.iframe-view h2,
.iframe-view h3,
.iframe-view .text-xl,
.iframe-view .text-lg {
    color: #333 !important;
    margin-bottom: 4px !important;
}

.iframe-view .text-gray-500 {
    color: #666 !important;
    line-height: 1.4 !important;
}

/* 调整头像大小 */
.iframe-view .w-10.h-10 {
    width: 36px !important;
    height: 36px !important;
}

/* 优化表单元素 */
.iframe-view input,
.iframe-view select,
.iframe-view button {
    font-size: 14px !important;
}

/* 调整iframe内容距离顶部的间距 */
.iframe-view > div:first-child {
    margin-top: 0 !important;
}

/* 调整卡片边距 */
.iframe-view .card {
    margin: 8px 0 !important;
    padding: 12px !important;
}

/* 调整图表容器 */
.iframe-view .chart-container {
    margin-top: 8px !important;
    padding: 12px !important;
}

/* 确保内容可见性 */
.iframe-view .text-xs {
    font-size: 10px !important;
}

/* 优化主内容区的间距 */
.iframe-view .main-content {
    padding: 8px 12px 40px !important;
}

/* 优化余额卡片 */
.iframe-view .balance-card {
    margin: 8px 0 !important;
    padding: 12px !important;
}

/* 确保图表正常显示 */
.iframe-view .chart-container canvas {
    max-height: 100% !important;
}

/* 针对新的iPhone样机结构优化 */
.iframe-view .bill-item {
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.iframe-view .bill-content {
    flex: 1 !important;
}

.iframe-view .bill-title {
    font-weight: 500 !important;
    margin-bottom: 2px !important;
}

.iframe-view .bill-detail {
    font-size: 12px !important;
    color: #666 !important;
}

.iframe-view .bill-amount {
    font-weight: 500 !important;
    text-align: right !important;
    width: 90px !important;
}

.iframe-view .mb-4 {
    margin-bottom: 12px !important;
}

.iframe-view .mb-3 {
    margin-bottom: 8px !important;
}

.iframe-view .text-xl {
    font-size: 18px !important;
}

.iframe-view .text-lg {
    font-size: 16px !important;
}

.iframe-view .expense,
.iframe-view .income {
    font-weight: 500 !important;
}

/* 确保在iPhone里面内容可滚动 */
.iframe-content {
    overflow-y: auto !important;
}

/* 处理新增的红色金额标记 */
.iframe-view .expense-amount,
.iframe-view .income-amount {
    font-size: 13px !important;
}

/* 处理底部导航的隐藏 */
.iframe-screen .bottom-nav {
    display: none !important;
}

/* 改善间距和文字布局 */
.iframe-view .flex {
    display: flex !important;
}

.iframe-view .items-center {
    align-items: center !important;
}

.iframe-view .justify-between {
    justify-content: space-between !important;
}

.iframe-view .bill-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-right: 10px !important;
} 
